package com.dao;

import com.model.DeviceChangeRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeviceChangeRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DeviceChangeRecord record);

    DeviceChangeRecord selectByPrimaryKey(Long id);
    int updateByPrimaryKey(DeviceChangeRecord record);

    List<DeviceChangeRecord> selectChangeRecordListByDeviceId(@Param("deviceId") Long id);
}